package dome3;

public class Frog extends Animal implements IAmphibious{

    public Frog(String name, int age) {
        super(name, age);
    }

    @Override
    void eat() {
        System.out.println(name+"在吃小虫子");
    }

    @Override
    public void run() {
        System.out.println(name+"在用蛙脚走路");
    }

    @Override
    public void swim() {
        System.out.println(name+"在用四只蛙脚游泳");
    }
}
